import 'package:ecy_app_flutter/routes/goods/model/EcyGoodsSkuModel.dart';
import 'package:json_annotation/json_annotation.dart';
part 'EcyOrderFinalPayModel.g.dart';

@JsonSerializable()
class EcyOrderFinalPayModel {
  String? orderId;
  String? orderCode;
  int? channel;
  int? orderType;
  String? time;
  String? countdown;
  int? postage;
  // String? address; //0或空为支付宝 1为微信
  List<EcyGoodsSkuModel>? goods;
  EcyOrderFinalPayModel(this.orderId, this.orderCode, this.channel,
      this.orderType, this.time, this.countdown, this.postage, this.goods);

  // 从JSON创建User实例的工厂方法
  factory EcyOrderFinalPayModel.fromJson(Map<String, dynamic> json) =>
      _$EcyOrderFinalPayModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyOrderFinalPayModelToJson(this);
}
